package com.doupi.partner.service;

import com.doupi.partner.dal.model.AdministratorRole;
import com.doupi.partner.service.dto.AdministratorRoleDto;
import com.doupi.partner.util.Pagination;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface AdministratorRoleService {
	int deleteByPrimaryKey(Long id);

	int insert(AdministratorRole record);

	AdministratorRole selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AdministratorRole record);

	int countAdministratorRole(AdministratorRole administratorRole);

	List<AdministratorRole> queryAdministratorRoles(AdministratorRole administratorRole, RowBounds rowBounds);

	AdministratorRole selectAdministratorRoleForUpdateByPrimaryKey(Long id);

	Pagination<AdministratorRole, AdministratorRole> queryAdministratorRoles(Pagination<AdministratorRole, AdministratorRole> pagination);

	void saveAdministratorRole(AdministratorRoleDto administratorRoleDto);

	AdministratorRole selectAdministratorRoleByCode(String code);
}
